﻿using SHZY.Common.Const;
using SHZY.Common.Contracts;
using SqlSugar;

namespace SHZY.BaseData.Entitys.Common.Entity;

/// <summary>
/// 标签规则实体.
/// </summary>
[SugarTable("com_base_label_rules", "标签规则")]
[Tenant(ClaimConst.TENANTID)]
public class ComBaseLabelRulesEntity : CLDEntityBase
{
    /// <summary>
    /// 规则编码.
    /// </summary>
    [SugarColumn(ColumnName = "F_Code", ColumnDescription = "规则编码")]
    public string Code { get; set; }

    /// <summary>
    /// 规则名称.
    /// </summary>
    [SugarColumn(ColumnName = "F_Name", ColumnDescription = "规则名称")]
    public string Name { get; set; }

    /// <summary>
    /// 标签类型.
    /// </summary>
    [SugarColumn(ColumnName = "F_Type", ColumnDescription = "标签类型")]
    public string Type { get; set; }

    /// <summary>
    /// 日期格式(字典项维护).
    /// </summary>
    [SugarColumn(ColumnName = "F_DateFormat", ColumnDescription = "日期格式(字典项维护)")]
    public string DateFormat { get; set; }

    /// <summary>
    /// 序列号长度.
    /// </summary>
    [SugarColumn(ColumnName = "F_Length", ColumnDescription = "序列号长度")]
    public int? Length { get; set; }

    /// <summary>
    /// 序列号最大值.
    /// </summary>
    [SugarColumn(ColumnName = "F_MaxValue", ColumnDescription = "序列号最大值")]
    public string MaxValue { get; set; }

    /// <summary>
    /// 序列号最小值.
    /// </summary>
    [SugarColumn(ColumnName = "F_MinValue", ColumnDescription = "序列号最小值")]
    public string MinValue { get; set; }

    /// <summary>
    /// 不足数补位(0,' ').
    /// </summary>
    [SugarColumn(ColumnName = "F_Fillin", ColumnDescription = "不足数补位(0,' ')")]
    public string Fillin { get; set; }

    /// <summary>
    /// 步进值.
    /// </summary>
    [SugarColumn(ColumnName = "F_StepValue", ColumnDescription = "步进值")]
    public int? StepValue { get; set; }

    /// <summary>
    /// 序列范围.
    /// </summary>
    [SugarColumn(ColumnName = "F_Sequence", ColumnDescription = "序列范围")]
    public string Sequence { get; set; }

    /// <summary>
    /// 序列号指定值重置.
    /// </summary>
    [SugarColumn(ColumnName = "F_SpecifiedValue", ColumnDescription = "序列号指定值重置")]
    public string SpecifiedValue { get; set; }

    /// <summary>
    /// 重置值.
    /// </summary>
    [SugarColumn(ColumnName = "F_ResetValue", ColumnDescription = "重置值")]
    public string ResetValue { get; set; }

    /// <summary>
    /// 重置时间.
    /// </summary>
    [SugarColumn(ColumnName = "F_ResetTime", ColumnDescription = "重置时间")]
    public string ResetTime { get; set; }
}